package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.StaffAreaDO;
import com.mhc.haval.dal.query.StaffAreaQuery;

import java.util.List;


/**
 * Manager for StaffArea.
 */
public interface StaffAreaManager {
    /**
     * query count by query condition.
     */
    int countByQuery(StaffAreaQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(StaffAreaQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(StaffAreaDO record);

    /**
     * insert selective.
     */
    long insertSelective(StaffAreaDO record);

    /**
     * select by query condition.
     */
    List<StaffAreaDO> selectByQuery(StaffAreaQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<StaffAreaDO> selectByQueryWithPage(StaffAreaQuery query);

    /**
     * select by primary key.
     */
    StaffAreaDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( StaffAreaDO record,  StaffAreaQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(StaffAreaDO record, StaffAreaQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(StaffAreaDO record);
}